<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libschc: picocoap.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libschc
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">picocoap.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="picocoap_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#ifndef _COAP_H_</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#define _COAP_H_</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;stddef.h&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a42e24df1551401726ed936baddb2a2ec">   28</a></span>&#160;<span class="preprocessor">#define COAP_ACK_TIMEOUT          2</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a343c27d1c7ad3346aec70646caa341a0">   29</a></span>&#160;<span class="preprocessor">#define COAP_ACK_RANDOM_FACTOR    1.5</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="picocoap_8h.html#ab099eef660b4c5b038b4b87239a82c35">   30</a></span>&#160;<span class="preprocessor">#define COAP_MAX_RETRANSMIT       4</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a5733f3616dbb5ae758b062296da6f843">   31</a></span>&#160;<span class="preprocessor">#define COAP_NSTART               1</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="picocoap_8h.html#ac74e78ce8eb169a24787638b4c2074d7">   32</a></span>&#160;<span class="preprocessor">#define COAP_DEFAULT_LEISURE      5</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a2ed23e020e732dda3a360191f231da7b">   33</a></span>&#160;<span class="preprocessor">#define COAP_PROBING_RATE         1</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a9e0313ab0ba8fd48729bd8d77cc34ae3">   35</a></span>&#160;<span class="preprocessor">#define COAP_MAX_TRANSMIT_SPAN   45</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="picocoap_8h.html#ad2acd5582df0fb73b3b823b2fa5b157b">   36</a></span>&#160;<span class="preprocessor">#define COAP_MAX_TRANSMIT_WAIT   93</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="picocoap_8h.html#adc147063d422cfed3703e74cd222caef">   37</a></span>&#160;<span class="preprocessor">#define COAP_MAX_LATENCY        100</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a44facf47657ac3f4d1075ca9f51ba24b">   38</a></span>&#160;<span class="preprocessor">#define COAP_PROCESSING_DELAY     2</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a0621265cdaf30c81a9ef53ecb9f51e56">   39</a></span>&#160;<span class="preprocessor">#define COAP_MAX_RTT            202</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a25528ec74a52f6c3c1c90298e797cae4">   40</a></span>&#160;<span class="preprocessor">#define COAP_EXCHANGE_LIFETIME  247</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a87fd7d7dd618371cbc930e30bf1c27d9">   41</a></span>&#160;<span class="preprocessor">#define COAP_NON_LIFETIME       145</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">// total number of CoAP options available</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a32c693bd3dc87d85f8256028e9f0e0bf">   44</a></span>&#160;<span class="preprocessor">#define COAP_OPTIONS_LENGTH     16</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment"> * this struct and the corresponding names are added</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment"> * so we can check the fields in the SCHC header</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structpcoap__option__names.html">   50</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structpcoap__option__names.html">pcoap_option_names</a> {</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structpcoap__option__names.html#aa6dff5ad010251ecdb494f25ccf6bc6b">   51</a></span>&#160;    uint16_t <a class="code" href="structpcoap__option__names.html#aa6dff5ad010251ecdb494f25ccf6bc6b">id</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structpcoap__option__names.html#ab6b804e37d8586e225bff9b24c33c569">   52</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="structpcoap__option__names.html#ab6b804e37d8586e225bff9b24c33c569">name</a>[16];</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;};</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a18cfdd40118563c137b6b911332dde6e">   55</a></span>&#160;<span class="keyword">static</span> <span class="keyword">struct </span><a class="code" href="structpcoap__option__names.html">pcoap_option_names</a> <a class="code" href="picocoap_8h.html#a18cfdd40118563c137b6b911332dde6e">coap_options</a>[<a class="code" href="picocoap_8h.html#a32c693bd3dc87d85f8256028e9f0e0bf">COAP_OPTIONS_LENGTH</a>] = {</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        { 1, <span class="stringliteral">&quot;if-match&quot;</span> },</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        { 3, <span class="stringliteral">&quot;uri-host&quot;</span> },</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        { 4, <span class="stringliteral">&quot;etag&quot;</span> },</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        { 5, <span class="stringliteral">&quot;if-none-match&quot;</span> },</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        { 7, <span class="stringliteral">&quot;uri-port&quot;</span> },</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        { 8, <span class="stringliteral">&quot;location-path&quot;</span> },</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        { 11, <span class="stringliteral">&quot;uri-path&quot;</span>} ,</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        { 12, <span class="stringliteral">&quot;content-format&quot;</span> },</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        { 14, <span class="stringliteral">&quot;max-age&quot;</span> },</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        { 15, <span class="stringliteral">&quot;uri-query&quot;</span> },</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        { 17, <span class="stringliteral">&quot;accept&quot;</span> },</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        { 20, <span class="stringliteral">&quot;location-query&quot;</span> },</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        { 35, <span class="stringliteral">&quot;proxy-uri&quot;</span> },</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        { 39, <span class="stringliteral">&quot;proxy-scheme&quot;</span> },</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        { 60, <span class="stringliteral">&quot;size1&quot;</span> },</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        { 258, <span class="stringliteral">&quot;no-response&quot;</span>}</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;};</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1">   80</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1">coap_error</a> {</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1ae11d26835a51a1cbe703cc64489abab4">   81</a></span>&#160;    <a class="code" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1ae11d26835a51a1cbe703cc64489abab4">CE_NONE</a> = 0,</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1af4cdd83b8dd5a3c7fcffb2a996e4cd0b">   82</a></span>&#160;    <a class="code" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1af4cdd83b8dd5a3c7fcffb2a996e4cd0b">CE_INVALID_PACKET</a>,</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a1daf45d75909a7b9cfdb1efa172d6291">   83</a></span>&#160;    <a class="code" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a1daf45d75909a7b9cfdb1efa172d6291">CE_BAD_VERSION</a>,</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1adf21648dbb52ed121b4f00f090a770d7">   84</a></span>&#160;    <a class="code" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1adf21648dbb52ed121b4f00f090a770d7">CE_TOKEN_LENGTH_OUT_OF_RANGE</a>,</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1af1cd5b6c54ad2ed5d173ad4073db0ce7">   85</a></span>&#160;    <a class="code" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1af1cd5b6c54ad2ed5d173ad4073db0ce7">CE_UNKNOWN_CODE</a>,</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a408d5d4b9b4f4fa0425e5daf363f33c6">   86</a></span>&#160;    <a class="code" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a408d5d4b9b4f4fa0425e5daf363f33c6">CE_TOO_MANY_OPTIONS</a>,</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a11eef067ac802f6435448d6bdb23a8c8">   87</a></span>&#160;    <a class="code" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a11eef067ac802f6435448d6bdb23a8c8">CE_OUT_OF_ORDER_OPTIONS_LIST</a>,</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1adcd4f46e58a37c35d30bb2620d4db143">   88</a></span>&#160;    <a class="code" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1adcd4f46e58a37c35d30bb2620d4db143">CE_INSUFFICIENT_BUFFER</a>,</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a85f0155625c6c78f3a57f6f0d63c69b9">   89</a></span>&#160;    <a class="code" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a85f0155625c6c78f3a57f6f0d63c69b9">CE_FOUND_PAYLOAD_MARKER</a>,</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a0aaf352fa21e5f386c11aaa3271c5814">   90</a></span>&#160;    <a class="code" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a0aaf352fa21e5f386c11aaa3271c5814">CE_END_OF_PACKET</a></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;} <a class="code" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a>;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74">   98</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74">coap_version</a> {</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74a8d1ccd2774522702376faa2212156ebb">   99</a></span>&#160;    <a class="code" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74a8d1ccd2774522702376faa2212156ebb">COAP_V1</a> = 1</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;} <a class="code" href="picocoap_8h.html#aa85087040a9a41e7c24d8ae00f24e02b">pcoap_version</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429">  107</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429">coap_type</a> {</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a5321c1999d967bdb0690c110ffd2d694">  108</a></span>&#160;    <a class="code" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a5321c1999d967bdb0690c110ffd2d694">CT_CON</a> = 0,</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a569079569cc030d7b3e8742fe4fb604c">  109</a></span>&#160;    <a class="code" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a569079569cc030d7b3e8742fe4fb604c">CT_NON</a> = 1,</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429ac05b4755c123dbfcdea069c30e00fbf2">  110</a></span>&#160;    <a class="code" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429ac05b4755c123dbfcdea069c30e00fbf2">CT_ACK</a> = 2,</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a6b19a4f509598ba63b9298406f8c33a9">  111</a></span>&#160;    <a class="code" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a6b19a4f509598ba63b9298406f8c33a9">CT_RST</a> = 3</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;} <a class="code" href="picocoap_8h.html#ac67fe50885918b21eee276d621605942">pcoap_type</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">  119</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a> {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="comment">/* CoAP method codes */</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a9258abcdb7967f26f72d5bf86f7d9f80">  121</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a9258abcdb7967f26f72d5bf86f7d9f80">CC_EMPTY</a> = 0,</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a1081e5a7863be0da7533b418088c372d">  122</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a1081e5a7863be0da7533b418088c372d">CC_GET</a> = 1,</div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a7e55c7951ace83c8ee1f8d14d481b80e">  123</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a7e55c7951ace83c8ee1f8d14d481b80e">CC_POST</a> = 2,</div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ad0642d36276b52a1b0a267b9e081cef4">  124</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ad0642d36276b52a1b0a267b9e081cef4">CC_PUT</a> = 3,</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ae04c43a96dcbd7b786b77114bcb4d3f1">  125</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ae04c43a96dcbd7b786b77114bcb4d3f1">CC_DELETE</a> = 4,</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="comment">/* CoAP response codes */</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aa6aab3f3056cf09e44bc7a8b353b989c">  127</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aa6aab3f3056cf09e44bc7a8b353b989c">CC_CREATED</a> = 65,</div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a5db69a5dae0a4df7e6d359bb711f4eb4">  128</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a5db69a5dae0a4df7e6d359bb711f4eb4">CC_DELETED</a> = 66,</div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aed4f016d99609daf64d6dbbe86462285">  129</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aed4f016d99609daf64d6dbbe86462285">CC_VALID</a> = 67,</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ab75ed2f4de3fd8082fae6d762ecb8047">  130</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ab75ed2f4de3fd8082fae6d762ecb8047">CC_CHANGED</a> = 68,</div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a5a3d8dfe96ed58ee297980aa825e3c31">  131</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a5a3d8dfe96ed58ee297980aa825e3c31">CC_CONTENT</a> = 69,</div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a3a8a055a5144a03f36b975b2d538aeca">  132</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a3a8a055a5144a03f36b975b2d538aeca">CC_CONTINUE</a> = 95,</div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a6990adba80ec99e44086bd7da700b3e0">  133</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a6990adba80ec99e44086bd7da700b3e0">CC_BAD_REQUEST</a> = 128,</div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a8c47fe296dd2a3b9b4d448f01cb0dac8">  134</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a8c47fe296dd2a3b9b4d448f01cb0dac8">CC_UNAUTHORIZED</a> = 129,</div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a4222ebc49140f8fa4961b421c07e70e9">  135</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a4222ebc49140f8fa4961b421c07e70e9">CC_BAD_OPTION</a> = 130,</div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ab93c8cf2548e5a7e234f1239fc5abb21">  136</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ab93c8cf2548e5a7e234f1239fc5abb21">CC_FORBIDDEN</a> = 131,</div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a45458afefee98fce1045ac286aa87281">  137</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a45458afefee98fce1045ac286aa87281">CC_NOT_FOUND</a> = 132,</div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aefdacb5576f290465d8db20ec254d181">  138</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aefdacb5576f290465d8db20ec254d181">CC_METHOD_NOT_ALLOWED</a> = 133,</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aa296b59cf098dad78d44a561bd32ae9e">  139</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aa296b59cf098dad78d44a561bd32ae9e">CC_NOT_ACCEPTABLE</a> = 134,</div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a76b72396b70f26b9fba3ec17ee55bb0f">  140</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a76b72396b70f26b9fba3ec17ee55bb0f">CC_REQUEST_ENTITY_INCOMPLETE</a> = 136,</div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a0abed60bac4e93dfff04bd07df958107">  141</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a0abed60bac4e93dfff04bd07df958107">CC_PRECONDITION_FAILED</a> = 140,</div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a9713f1516ec910b1e5023e7f743814d3">  142</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a9713f1516ec910b1e5023e7f743814d3">CC_REQUEST_ENTITY_TOO_LARGE</a> = 141,</div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a8844b1adff13138095852a8ebd24cd54">  143</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a8844b1adff13138095852a8ebd24cd54">CC_UNSUPPORTED_CONTENT</a>  = 143,</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8abb3452820869a420cfa482d274b44aae">  144</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8abb3452820869a420cfa482d274b44aae">CC_INTERNAL_SERVER_ERROR</a> = 160,</div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a1bba826f081906a79b7b124d57ecaf10">  145</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a1bba826f081906a79b7b124d57ecaf10">CC_NOT_IMPLEMENTED</a> = 161,</div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a2c5c68ef4745976c17454bac87527f05">  146</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a2c5c68ef4745976c17454bac87527f05">CC_BAD_GATEWAY</a> = 162,</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a6c51d61c5233b543567ee7589136bec3">  147</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a6c51d61c5233b543567ee7589136bec3">CC_SERVICE_UNAVAILABLE</a> = 163,</div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ac0b398812b69ce663e90c509957ca46f">  148</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ac0b398812b69ce663e90c509957ca46f">CC_GATEWAY_TIMEOUT</a> = 164,</div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a37f2e44f9612d8068df96b49c4484524">  149</a></span>&#160;    <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a37f2e44f9612d8068df96b49c4484524">CC_PROXYING_NOT_SUPPORTED</a> = 165</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;} <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a>;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5">  157</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5">pcoap_option_number</a> {</div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a8ce05569f1014ebc8f1a284c3a9150ee">  158</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a8ce05569f1014ebc8f1a284c3a9150ee">CON_IF_MATCH</a> = 1,</div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a3184a5abcc31c579052eafaabdf76869">  159</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a3184a5abcc31c579052eafaabdf76869">CON_URI_HOST</a> = 3,</div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a0df0456e384384a6929f7a0d0fb3fc83">  160</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a0df0456e384384a6929f7a0d0fb3fc83">CON_ETAG</a> = 4,</div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a44192b4f85f6d387e41b4c8ddec332ed">  161</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a44192b4f85f6d387e41b4c8ddec332ed">CON_IF_NONE_MATCH</a> = 5,</div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5affbf7b8d14e175bde3238835a34b99a3">  162</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5affbf7b8d14e175bde3238835a34b99a3">CON_OBSERVE</a> = 6,</div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5ae0ad1427ffa0bcc1fa3f710a2aebdf1d">  163</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5ae0ad1427ffa0bcc1fa3f710a2aebdf1d">CON_URI_PORT</a> = 7,</div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a9b38a519bd3f0a5a62d7f7ed1cf185d1">  164</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a9b38a519bd3f0a5a62d7f7ed1cf185d1">CON_LOCATION_PATH</a> = 8,</div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5aac633e5706688eac61a7038a35567cca">  165</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5aac633e5706688eac61a7038a35567cca">CON_URI_PATH</a> = 11,</div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5ad5b163ee5b8c1d98774c1839ab8fcbcc">  166</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5ad5b163ee5b8c1d98774c1839ab8fcbcc">CON_CONTENT_FORMAT</a> = 12,</div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a90ffe25a2ae1f3a3e2a232819eac9614">  167</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a90ffe25a2ae1f3a3e2a232819eac9614">CON_MAX_AGE</a> = 14,</div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5aa83c3c85504c7346d8ce5f7ea2bc9ca9">  168</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5aa83c3c85504c7346d8ce5f7ea2bc9ca9">CON_URI_QUERY</a> = 15,</div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a6596c2a0bc92a19637f98ebfdcd10671">  169</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a6596c2a0bc92a19637f98ebfdcd10671">CON_ACCEPT</a> = 17,</div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a6ce6458ac23fdf88a6690b12b883441e">  170</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a6ce6458ac23fdf88a6690b12b883441e">CON_LOCATION_QUERY</a> = 20,</div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a695d6858e9e775b1eb6fb67cf855d61d">  171</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a695d6858e9e775b1eb6fb67cf855d61d">CON_PROXY_URI</a> = 35,</div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5aba42403bb9756bfcde04ae572e12d6a2">  172</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5aba42403bb9756bfcde04ae572e12d6a2">CON_PROXY_SCHEME</a> = 39,</div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5adadc98d6fb84e39625cc6d75470b01fa">  173</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5adadc98d6fb84e39625cc6d75470b01fa">CON_SIZE1</a> = 60,</div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a34caccb80453b6ce0f5e3bd58d4bad6c">  174</a></span>&#160;    <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a34caccb80453b6ce0f5e3bd58d4bad6c">CON_NO_RESPONSE</a> = 258</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;} <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5">pcoap_option_number</a>;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="structpcoap__pdu.html">  182</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> {</div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="structpcoap__pdu.html#ac7fb7c99a92c51f5ff8d3f4efb6c3f75">  183</a></span>&#160;    uint8_t *<a class="code" href="structpcoap__pdu.html#ac7fb7c99a92c51f5ff8d3f4efb6c3f75">buf</a>;  </div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="structpcoap__pdu.html#a07f3173f8d53bbfb89a97a4f6ba4e449">  184</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structpcoap__pdu.html#a07f3173f8d53bbfb89a97a4f6ba4e449">len</a>;    </div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="structpcoap__pdu.html#aa631784d7d454e34fa3499de294b93b5">  185</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structpcoap__pdu.html#aa631784d7d454e34fa3499de294b93b5">max</a>;    </div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;} <a class="code" href="picocoap_8h.html#a0e56e82f2f0b64143b3e9958b7cc3657">pcoap_pdu</a>;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="structpcoap__option.html">  193</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structpcoap__option.html">pcoap_option</a> {</div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="structpcoap__option.html#ae4982c9d69482266d39097e641e097d0">  194</a></span>&#160;    uint16_t <a class="code" href="structpcoap__option.html#ae4982c9d69482266d39097e641e097d0">num</a>;   </div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="structpcoap__option.html#aa098eebc4e99aab34f14f635d6791a0d">  195</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structpcoap__option.html#aa098eebc4e99aab34f14f635d6791a0d">len</a>; </div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="structpcoap__option.html#a6cad6184d76b3a8c96a742834b25a5f1">  196</a></span>&#160;    uint8_t *<a class="code" href="structpcoap__option.html#a6cad6184d76b3a8c96a742834b25a5f1">val</a>;   </div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;} <a class="code" href="picocoap_8h.html#a771797fad8ad38810c587b5929c60bd2">pcoap_option</a>;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160; </div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="structpcoap__payload.html">  204</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structpcoap__payload.html">pcoap_payload</a> {</div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="structpcoap__payload.html#a61fd27f0cdb5d2101dc1d25aa8b2c60b">  205</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structpcoap__payload.html#a61fd27f0cdb5d2101dc1d25aa8b2c60b">len</a>; </div>
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="structpcoap__payload.html#aae7b0f41c4c59558379b8b2a8b25674f">  206</a></span>&#160;    uint8_t *<a class="code" href="structpcoap__payload.html#aae7b0f41c4c59558379b8b2a8b25674f">val</a>;   </div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;} <a class="code" href="picocoap_8h.html#affcc36a845fcf67c97a6b5cd176f36ca">pcoap_payload</a>;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160; </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="comment">// Finds the length of the CoAP header</span></div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="comment">// And consequently the length of the payload</span></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;uint8_t <a class="code" href="picocoap_8h.html#acbfc392c98f18ba088cacabd5cc82ce0">pcoap_get_coap_offset</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu);</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160; </div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<a class="code" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> <a class="code" href="picocoap_8h.html#aafb365b66f2b8cd7fc93b6b83dce56fa">pcoap_validate_pkt</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu);</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160; </div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="comment">// Getters</span></div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160; </div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a04698973849a02609859e96af51f5022">  239</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="picocoap_8h.html#aa85087040a9a41e7c24d8ae00f24e02b">pcoap_version</a> <a class="code" href="picocoap_8h.html#a04698973849a02609859e96af51f5022">pcoap_get_version</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu) { <span class="keywordflow">return</span> (<a class="code" href="picocoap_8h.html#aa85087040a9a41e7c24d8ae00f24e02b">pcoap_version</a>) (pdu-&gt;<a class="code" href="structpcoap__pdu.html#ac7fb7c99a92c51f5ff8d3f4efb6c3f75">buf</a>[0] &gt;&gt; 6); }</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160; </div>
<div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="picocoap_8h.html#ac32b7b090270841f3ab5c245c753cb13">  249</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="picocoap_8h.html#ac67fe50885918b21eee276d621605942">pcoap_type</a> <a class="code" href="picocoap_8h.html#ac32b7b090270841f3ab5c245c753cb13">pcoap_get_type</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu) { <span class="keywordflow">return</span> (<a class="code" href="picocoap_8h.html#ac67fe50885918b21eee276d621605942">pcoap_type</a>) ((pdu-&gt;<a class="code" href="structpcoap__pdu.html#ac7fb7c99a92c51f5ff8d3f4efb6c3f75">buf</a>[0] &gt;&gt; 4) &amp; 0x03); }</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160; </div>
<div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="picocoap_8h.html#ae9dc61fe8a5039ec1c2f19e6fd7e7da7">  259</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> uint8_t <a class="code" href="picocoap_8h.html#ae9dc61fe8a5039ec1c2f19e6fd7e7da7">pcoap_get_tkl</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu) { <span class="keywordflow">return</span> pdu-&gt;<a class="code" href="structpcoap__pdu.html#ac7fb7c99a92c51f5ff8d3f4efb6c3f75">buf</a>[0] &amp; 0x0F; }</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160; </div>
<div class="line"><a name="l00269"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a5dda5b5c0bb02888d3eaef8773da6c1c">  269</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a> <a class="code" href="picocoap_8h.html#a5dda5b5c0bb02888d3eaef8773da6c1c">pcoap_get_code</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu) { <span class="keywordflow">return</span> (<a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a>) (pdu-&gt;<a class="code" href="structpcoap__pdu.html#ac7fb7c99a92c51f5ff8d3f4efb6c3f75">buf</a>[1]); }</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160; </div>
<div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="picocoap_8h.html#ae0b9bf7d80521b5f7bf9de29546c5b72">  278</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> uint8_t <a class="code" href="picocoap_8h.html#ae0b9bf7d80521b5f7bf9de29546c5b72">pcoap_get_code_class</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu) { <span class="keywordflow">return</span> <a class="code" href="picocoap_8h.html#a5dda5b5c0bb02888d3eaef8773da6c1c">pcoap_get_code</a>(pdu) &gt;&gt; 5; }</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160; </div>
<div class="line"><a name="l00287"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a0ae1c5d83467bea1fd1a28de23281a10">  287</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> uint8_t <a class="code" href="picocoap_8h.html#a0ae1c5d83467bea1fd1a28de23281a10">pcoap_get_code_detail</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu) { <span class="keywordflow">return</span> <a class="code" href="picocoap_8h.html#a5dda5b5c0bb02888d3eaef8773da6c1c">pcoap_get_code</a>(pdu) &amp; 0x1F; }</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160; </div>
<div class="line"><a name="l00296"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a68f14c9ac6fa344a5e74d2dd11da2fec">  296</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> uint16_t <a class="code" href="picocoap_8h.html#a68f14c9ac6fa344a5e74d2dd11da2fec">pcoap_get_mid</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu) { <span class="keywordflow">return</span> (pdu-&gt;<a class="code" href="structpcoap__pdu.html#ac7fb7c99a92c51f5ff8d3f4efb6c3f75">buf</a>[2] &lt;&lt; 8) | pdu-&gt;<a class="code" href="structpcoap__pdu.html#ac7fb7c99a92c51f5ff8d3f4efb6c3f75">buf</a>[3]; }</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160; </div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;uint8_t <a class="code" href="picocoap_8h.html#a9d1aa7c8f685736b6f58cb09f40bdd3c">pcoap_get_token</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, uint8_t* ptr);</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160; </div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;<a class="code" href="structpcoap__option.html">pcoap_option</a> <a class="code" href="picocoap_8h.html#a859e8eba609867e6e2c0b6ff2a969d38">pcoap_get_option</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, <a class="code" href="structpcoap__option.html">pcoap_option</a> *last);</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160; </div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;<a class="code" href="structpcoap__option.html">pcoap_option</a> <a class="code" href="picocoap_8h.html#a28b0035cf1fab512f4a990059e78501b">pcoap_get_option_by_num</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, <a class="code" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5">pcoap_option_number</a> num, uint8_t occ);</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160; </div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;<a class="code" href="structpcoap__payload.html">pcoap_payload</a> <a class="code" href="picocoap_8h.html#af576d82c1b5c6b38db85c4b38691fc87">pcoap_get_payload</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu);</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160; </div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;<a class="code" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> <a class="code" href="picocoap_8h.html#a8aad0dae8087fa65cd0f77951ccf6fe0">pcoap_decode_option</a>(uint8_t *pkt_ptr, <span class="keywordtype">size_t</span> pkt_len,</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;                              uint16_t *option_number, <span class="keywordtype">size_t</span> *option_length, uint8_t **value);</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160; </div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;<span class="comment">// Setters</span></div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160; </div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;<a class="code" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> <a class="code" href="picocoap_8h.html#a498bfe6e2730cb5018c43e1c84ece8b8">pcoap_init_pdu</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu);</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160; </div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;<a class="code" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> <a class="code" href="picocoap_8h.html#a3e568b4f75937495e103d3e0c4a562e2">pcoap_set_version</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, <a class="code" href="picocoap_8h.html#aa85087040a9a41e7c24d8ae00f24e02b">pcoap_version</a> ver);</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160; </div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;<a class="code" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> <a class="code" href="picocoap_8h.html#a6cd830e991279e45ed6bba30f66ff5fe">pcoap_set_type</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, <a class="code" href="picocoap_8h.html#ac67fe50885918b21eee276d621605942">pcoap_type</a> mtype);</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160; </div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;<a class="code" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> <a class="code" href="picocoap_8h.html#a97706747324f6ab07b054ced91de43a5">pcoap_set_code</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, <a class="code" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a> code);</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160; </div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;<a class="code" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> <a class="code" href="picocoap_8h.html#a8b2807c0af83004f3144d8b295fec647">pcoap_set_mid</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, uint16_t mid);</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160; </div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;<a class="code" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> <a class="code" href="picocoap_8h.html#a5b9a5b44c21a9764790c1a7f3168f5bc">pcoap_set_token</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, uint8_t* token, uint8_t tkl);</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160; </div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;<a class="code" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> <a class="code" href="picocoap_8h.html#a539c085f5cd8660309b9248fe2224c9c">pcoap_add_option</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, int32_t opt_num, uint8_t* value, uint16_t opt_len);</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160; </div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;<a class="code" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> <a class="code" href="picocoap_8h.html#a314a687de17c9e5c0325e2842d4899dc">pcoap_set_payload</a>(<a class="code" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, uint8_t *payload, <span class="keywordtype">size_t</span> payload_len);</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160; </div>
<div class="line"><a name="l00445"></a><span class="lineno"><a class="line" href="picocoap_8h.html#a48a9e2b97de2c3cdd2f1d6c0b3cfefeb">  445</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> uint8_t <a class="code" href="picocoap_8h.html#a48a9e2b97de2c3cdd2f1d6c0b3cfefeb">pcoap_build_code</a>(uint8_t _class, uint8_t detail) { <span class="keywordflow">return</span> (_class &lt;&lt; 5) | detail; }</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160; </div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;<span class="comment">// Internal</span></div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160; </div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;<a class="code" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> <a class="code" href="picocoap_8h.html#a0e9f0127122915fe5da80363b1b802bc">pcoap_adjust_option_deltas</a>(uint8_t *opts, <span class="keywordtype">size_t</span> *opts_len, <span class="keywordtype">size_t</span> max_len, int32_t offset);</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160; </div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;int8_t <a class="code" href="picocoap_8h.html#a6ed0e923c8bde1711a858f6a95d6211d">pcoap_build_option_header</a>(uint8_t *buf, <span class="keywordtype">size_t</span> max_len, int32_t opt_delta, int32_t opt_len);</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160; </div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;int8_t <a class="code" href="picocoap_8h.html#ae623c60b0b9c8e994b3fd7687eee0147">pcoap_compute_option_header_len</a>(int32_t opt_delta, int32_t opt_len);</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160; </div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;}</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160; </div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/*_COAP_H_*/</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160; </div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a></div><div class="ttdeci">pcoap_code</div><div class="ttdoc">Message Codes.</div><div class="ttdef"><b>Definition:</b> picocoap.h:119</div></div>
<div class="ttc" id="apicocoap_8h_html_a5022bbbae08abe01dc1e3363d01c9429a6b19a4f509598ba63b9298406f8c33a9"><div class="ttname"><a href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a6b19a4f509598ba63b9298406f8c33a9">CT_RST</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:111</div></div>
<div class="ttc" id="apicocoap_8h_html_a4ae82558a4b549c2ae73f851df0d6cb2"><div class="ttname"><a href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a></div><div class="ttdeci">enum coap_error pcoap_error</div><div class="ttdoc">Status Codes.</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5">pcoap_option_number</a></div><div class="ttdeci">pcoap_option_number</div><div class="ttdoc">Option Numbers.</div><div class="ttdef"><b>Definition:</b> picocoap.h:157</div></div>
<div class="ttc" id="apicocoap_8h_html_a0ae1c5d83467bea1fd1a28de23281a10"><div class="ttname"><a href="picocoap_8h.html#a0ae1c5d83467bea1fd1a28de23281a10">pcoap_get_code_detail</a></div><div class="ttdeci">static uint8_t pcoap_get_code_detail(pcoap_pdu *pdu)</div><div class="ttdoc">Get Message Code Detail.</div><div class="ttdef"><b>Definition:</b> picocoap.h:287</div></div>
<div class="ttc" id="astructpcoap__payload_html_a61fd27f0cdb5d2101dc1d25aa8b2c60b"><div class="ttname"><a href="structpcoap__payload.html#a61fd27f0cdb5d2101dc1d25aa8b2c60b">pcoap_payload::len</a></div><div class="ttdeci">size_t len</div><div class="ttdef"><b>Definition:</b> picocoap.h:205</div></div>
<div class="ttc" id="apicocoap_8h_html_aa9dd43046c8daad008c9195a6f84d4f1a408d5d4b9b4f4fa0425e5daf363f33c6"><div class="ttname"><a href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a408d5d4b9b4f4fa0425e5daf363f33c6">CE_TOO_MANY_OPTIONS</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:86</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5a44192b4f85f6d387e41b4c8ddec332ed"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a44192b4f85f6d387e41b4c8ddec332ed">CON_IF_NONE_MATCH</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:161</div></div>
<div class="ttc" id="apicocoap_8h_html_aa9dd43046c8daad008c9195a6f84d4f1"><div class="ttname"><a href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1">coap_error</a></div><div class="ttdeci">coap_error</div><div class="ttdoc">Status Codes.</div><div class="ttdef"><b>Definition:</b> picocoap.h:80</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5a695d6858e9e775b1eb6fb67cf855d61d"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a695d6858e9e775b1eb6fb67cf855d61d">CON_PROXY_URI</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:171</div></div>
<div class="ttc" id="apicocoap_8h_html_a5dda5b5c0bb02888d3eaef8773da6c1c"><div class="ttname"><a href="picocoap_8h.html#a5dda5b5c0bb02888d3eaef8773da6c1c">pcoap_get_code</a></div><div class="ttdeci">static pcoap_code pcoap_get_code(pcoap_pdu *pdu)</div><div class="ttdoc">Get Message Code.</div><div class="ttdef"><b>Definition:</b> picocoap.h:269</div></div>
<div class="ttc" id="apicocoap_8h_html_af576d82c1b5c6b38db85c4b38691fc87"><div class="ttname"><a href="picocoap_8h.html#af576d82c1b5c6b38db85c4b38691fc87">pcoap_get_payload</a></div><div class="ttdeci">pcoap_payload pcoap_get_payload(pcoap_pdu *pdu)</div><div class="ttdoc">Get Option.</div><div class="ttdef"><b>Definition:</b> picocoap.c:270</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5aba42403bb9756bfcde04ae572e12d6a2"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5aba42403bb9756bfcde04ae572e12d6a2">CON_PROXY_SCHEME</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:172</div></div>
<div class="ttc" id="apicocoap_8h_html_aa9dd43046c8daad008c9195a6f84d4f1a0aaf352fa21e5f386c11aaa3271c5814"><div class="ttname"><a href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a0aaf352fa21e5f386c11aaa3271c5814">CE_END_OF_PACKET</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:90</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a0abed60bac4e93dfff04bd07df958107"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a0abed60bac4e93dfff04bd07df958107">CC_PRECONDITION_FAILED</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:141</div></div>
<div class="ttc" id="astructpcoap__option__names_html_aa6dff5ad010251ecdb494f25ccf6bc6b"><div class="ttname"><a href="structpcoap__option__names.html#aa6dff5ad010251ecdb494f25ccf6bc6b">pcoap_option_names::id</a></div><div class="ttdeci">uint16_t id</div><div class="ttdef"><b>Definition:</b> picocoap.h:51</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a5db69a5dae0a4df7e6d359bb711f4eb4"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a5db69a5dae0a4df7e6d359bb711f4eb4">CC_DELETED</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:128</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5a34caccb80453b6ce0f5e3bd58d4bad6c"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a34caccb80453b6ce0f5e3bd58d4bad6c">CON_NO_RESPONSE</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:174</div></div>
<div class="ttc" id="apicocoap_8h_html_a68f14c9ac6fa344a5e74d2dd11da2fec"><div class="ttname"><a href="picocoap_8h.html#a68f14c9ac6fa344a5e74d2dd11da2fec">pcoap_get_mid</a></div><div class="ttdeci">static uint16_t pcoap_get_mid(pcoap_pdu *pdu)</div><div class="ttdoc">Get Message ID.</div><div class="ttdef"><b>Definition:</b> picocoap.h:296</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5a6596c2a0bc92a19637f98ebfdcd10671"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a6596c2a0bc92a19637f98ebfdcd10671">CON_ACCEPT</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:169</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5a0df0456e384384a6929f7a0d0fb3fc83"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a0df0456e384384a6929f7a0d0fb3fc83">CON_ETAG</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:160</div></div>
<div class="ttc" id="apicocoap_8h_html_a9d1aa7c8f685736b6f58cb09f40bdd3c"><div class="ttname"><a href="picocoap_8h.html#a9d1aa7c8f685736b6f58cb09f40bdd3c">pcoap_get_token</a></div><div class="ttdeci">uint8_t pcoap_get_token(pcoap_pdu *pdu, uint8_t *ptr)</div><div class="ttdoc">Get Message Token.</div><div class="ttdef"><b>Definition:</b> picocoap.c:114</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5ae0ad1427ffa0bcc1fa3f710a2aebdf1d"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5ae0ad1427ffa0bcc1fa3f710a2aebdf1d">CON_URI_PORT</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:163</div></div>
<div class="ttc" id="apicocoap_8h_html_aafb365b66f2b8cd7fc93b6b83dce56fa"><div class="ttname"><a href="picocoap_8h.html#aafb365b66f2b8cd7fc93b6b83dce56fa">pcoap_validate_pkt</a></div><div class="ttdeci">pcoap_error pcoap_validate_pkt(pcoap_pdu *pdu)</div><div class="ttdoc">Validate Packet.</div><div class="ttdef"><b>Definition:</b> picocoap.c:71</div></div>
<div class="ttc" id="apicocoap_8h_html_a314a687de17c9e5c0325e2842d4899dc"><div class="ttname"><a href="picocoap_8h.html#a314a687de17c9e5c0325e2842d4899dc">pcoap_set_payload</a></div><div class="ttdeci">pcoap_error pcoap_set_payload(pcoap_pdu *pdu, uint8_t *payload, size_t payload_len)</div><div class="ttdoc">Add Message Option.</div><div class="ttdef"><b>Definition:</b> picocoap.c:477</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a1081e5a7863be0da7533b418088c372d"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a1081e5a7863be0da7533b418088c372d">CC_GET</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:122</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8aed4f016d99609daf64d6dbbe86462285"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aed4f016d99609daf64d6dbbe86462285">CC_VALID</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:129</div></div>
<div class="ttc" id="astructpcoap__option_html"><div class="ttname"><a href="structpcoap__option.html">pcoap_option</a></div><div class="ttdoc">CoAP Option.</div><div class="ttdef"><b>Definition:</b> picocoap.h:193</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8aa6aab3f3056cf09e44bc7a8b353b989c"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aa6aab3f3056cf09e44bc7a8b353b989c">CC_CREATED</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:127</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8ac0b398812b69ce663e90c509957ca46f"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ac0b398812b69ce663e90c509957ca46f">CC_GATEWAY_TIMEOUT</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:148</div></div>
<div class="ttc" id="astructpcoap__pdu_html_ac7fb7c99a92c51f5ff8d3f4efb6c3f75"><div class="ttname"><a href="structpcoap__pdu.html#ac7fb7c99a92c51f5ff8d3f4efb6c3f75">pcoap_pdu::buf</a></div><div class="ttdeci">uint8_t * buf</div><div class="ttdef"><b>Definition:</b> picocoap.h:183</div></div>
<div class="ttc" id="apicocoap_8h_html_a6cd830e991279e45ed6bba30f66ff5fe"><div class="ttname"><a href="picocoap_8h.html#a6cd830e991279e45ed6bba30f66ff5fe">pcoap_set_type</a></div><div class="ttdeci">pcoap_error pcoap_set_type(pcoap_pdu *pdu, pcoap_type mtype)</div><div class="ttdoc">Set Message Type.</div><div class="ttdef"><b>Definition:</b> picocoap.c:342</div></div>
<div class="ttc" id="apicocoap_8h_html_a18cfdd40118563c137b6b911332dde6e"><div class="ttname"><a href="picocoap_8h.html#a18cfdd40118563c137b6b911332dde6e">coap_options</a></div><div class="ttdeci">static struct pcoap_option_names coap_options[COAP_OPTIONS_LENGTH]</div><div class="ttdef"><b>Definition:</b> picocoap.h:55</div></div>
<div class="ttc" id="apicocoap_8h_html_aa9dd43046c8daad008c9195a6f84d4f1a85f0155625c6c78f3a57f6f0d63c69b9"><div class="ttname"><a href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a85f0155625c6c78f3a57f6f0d63c69b9">CE_FOUND_PAYLOAD_MARKER</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:89</div></div>
<div class="ttc" id="apicocoap_8h_html_a68aad811c8ab03701a2c3f1b84debe74"><div class="ttname"><a href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74">coap_version</a></div><div class="ttdeci">coap_version</div><div class="ttdoc">Protocol Versions.</div><div class="ttdef"><b>Definition:</b> picocoap.h:98</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5a8ce05569f1014ebc8f1a284c3a9150ee"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a8ce05569f1014ebc8f1a284c3a9150ee">CON_IF_MATCH</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:158</div></div>
<div class="ttc" id="apicocoap_8h_html_a3e568b4f75937495e103d3e0c4a562e2"><div class="ttname"><a href="picocoap_8h.html#a3e568b4f75937495e103d3e0c4a562e2">pcoap_set_version</a></div><div class="ttdeci">pcoap_error pcoap_set_version(pcoap_pdu *pdu, pcoap_version ver)</div><div class="ttdoc">Set Version.</div><div class="ttdef"><b>Definition:</b> picocoap.c:328</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5a3184a5abcc31c579052eafaabdf76869"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a3184a5abcc31c579052eafaabdf76869">CON_URI_HOST</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:159</div></div>
<div class="ttc" id="apicocoap_8h_html_aa9dd43046c8daad008c9195a6f84d4f1adf21648dbb52ed121b4f00f090a770d7"><div class="ttname"><a href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1adf21648dbb52ed121b4f00f090a770d7">CE_TOKEN_LENGTH_OUT_OF_RANGE</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:84</div></div>
<div class="ttc" id="apicocoap_8h_html_ae0b9bf7d80521b5f7bf9de29546c5b72"><div class="ttname"><a href="picocoap_8h.html#ae0b9bf7d80521b5f7bf9de29546c5b72">pcoap_get_code_class</a></div><div class="ttdeci">static uint8_t pcoap_get_code_class(pcoap_pdu *pdu)</div><div class="ttdoc">Get Message Code Class.</div><div class="ttdef"><b>Definition:</b> picocoap.h:278</div></div>
<div class="ttc" id="astructpcoap__pdu_html_a07f3173f8d53bbfb89a97a4f6ba4e449"><div class="ttname"><a href="structpcoap__pdu.html#a07f3173f8d53bbfb89a97a4f6ba4e449">pcoap_pdu::len</a></div><div class="ttdeci">size_t len</div><div class="ttdoc">pointer to buffer</div><div class="ttdef"><b>Definition:</b> picocoap.h:184</div></div>
<div class="ttc" id="astructpcoap__option_html_aa098eebc4e99aab34f14f635d6791a0d"><div class="ttname"><a href="structpcoap__option.html#aa098eebc4e99aab34f14f635d6791a0d">pcoap_option::len</a></div><div class="ttdeci">size_t len</div><div class="ttdoc">size of buffer</div><div class="ttdef"><b>Definition:</b> picocoap.h:195</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8ab75ed2f4de3fd8082fae6d762ecb8047"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ab75ed2f4de3fd8082fae6d762ecb8047">CC_CHANGED</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:130</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a4222ebc49140f8fa4961b421c07e70e9"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a4222ebc49140f8fa4961b421c07e70e9">CC_BAD_OPTION</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:135</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5a6ce6458ac23fdf88a6690b12b883441e"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a6ce6458ac23fdf88a6690b12b883441e">CON_LOCATION_QUERY</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:170</div></div>
<div class="ttc" id="apicocoap_8h_html_a5b9a5b44c21a9764790c1a7f3168f5bc"><div class="ttname"><a href="picocoap_8h.html#a5b9a5b44c21a9764790c1a7f3168f5bc">pcoap_set_token</a></div><div class="ttdeci">pcoap_error pcoap_set_token(pcoap_pdu *pdu, uint8_t *token, uint8_t tkl)</div><div class="ttdoc">Set Message Token.</div><div class="ttdef"><b>Definition:</b> picocoap.c:385</div></div>
<div class="ttc" id="apicocoap_8h_html_a5022bbbae08abe01dc1e3363d01c9429a5321c1999d967bdb0690c110ffd2d694"><div class="ttname"><a href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a5321c1999d967bdb0690c110ffd2d694">CT_CON</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:108</div></div>
<div class="ttc" id="apicocoap_8h_html_aa9dd43046c8daad008c9195a6f84d4f1a1daf45d75909a7b9cfdb1efa172d6291"><div class="ttname"><a href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a1daf45d75909a7b9cfdb1efa172d6291">CE_BAD_VERSION</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:83</div></div>
<div class="ttc" id="apicocoap_8h_html_ac32b7b090270841f3ab5c245c753cb13"><div class="ttname"><a href="picocoap_8h.html#ac32b7b090270841f3ab5c245c753cb13">pcoap_get_type</a></div><div class="ttdeci">static pcoap_type pcoap_get_type(pcoap_pdu *pdu)</div><div class="ttdoc">Get Message Type.</div><div class="ttdef"><b>Definition:</b> picocoap.h:249</div></div>
<div class="ttc" id="apicocoap_8h_html_a5022bbbae08abe01dc1e3363d01c9429ac05b4755c123dbfcdea069c30e00fbf2"><div class="ttname"><a href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429ac05b4755c123dbfcdea069c30e00fbf2">CT_ACK</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:110</div></div>
<div class="ttc" id="apicocoap_8h_html_aa9dd43046c8daad008c9195a6f84d4f1ae11d26835a51a1cbe703cc64489abab4"><div class="ttname"><a href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1ae11d26835a51a1cbe703cc64489abab4">CE_NONE</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:81</div></div>
<div class="ttc" id="apicocoap_8h_html_acbfc392c98f18ba088cacabd5cc82ce0"><div class="ttname"><a href="picocoap_8h.html#acbfc392c98f18ba088cacabd5cc82ce0">pcoap_get_coap_offset</a></div><div class="ttdeci">uint8_t pcoap_get_coap_offset(pcoap_pdu *pdu)</div><div class="ttdoc">Finds the length of the CoAP header.</div><div class="ttdef"><b>Definition:</b> picocoap.c:25</div></div>
<div class="ttc" id="apicocoap_8h_html_a8aad0dae8087fa65cd0f77951ccf6fe0"><div class="ttname"><a href="picocoap_8h.html#a8aad0dae8087fa65cd0f77951ccf6fe0">pcoap_decode_option</a></div><div class="ttdeci">pcoap_error pcoap_decode_option(uint8_t *pkt_ptr, size_t pkt_len, uint16_t *option_number, size_t *option_length, uint8_t **value)</div><div class="ttdoc">Internal Method.</div><div class="ttdef"><b>Definition:</b> picocoap.c:210</div></div>
<div class="ttc" id="apicocoap_8h_html_a771797fad8ad38810c587b5929c60bd2"><div class="ttname"><a href="picocoap_8h.html#a771797fad8ad38810c587b5929c60bd2">pcoap_option</a></div><div class="ttdeci">struct pcoap_option pcoap_option</div><div class="ttdoc">CoAP Option.</div></div>
<div class="ttc" id="apicocoap_8h_html_a8b2807c0af83004f3144d8b295fec647"><div class="ttname"><a href="picocoap_8h.html#a8b2807c0af83004f3144d8b295fec647">pcoap_set_mid</a></div><div class="ttdeci">pcoap_error pcoap_set_mid(pcoap_pdu *pdu, uint16_t mid)</div><div class="ttdoc">Set Message ID.</div><div class="ttdef"><b>Definition:</b> picocoap.c:370</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a8c47fe296dd2a3b9b4d448f01cb0dac8"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a8c47fe296dd2a3b9b4d448f01cb0dac8">CC_UNAUTHORIZED</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:134</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5aa83c3c85504c7346d8ce5f7ea2bc9ca9"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5aa83c3c85504c7346d8ce5f7ea2bc9ca9">CON_URI_QUERY</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:168</div></div>
<div class="ttc" id="astructpcoap__option__names_html"><div class="ttname"><a href="structpcoap__option__names.html">pcoap_option_names</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:50</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5aac633e5706688eac61a7038a35567cca"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5aac633e5706688eac61a7038a35567cca">CON_URI_PATH</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:165</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5a9b38a519bd3f0a5a62d7f7ed1cf185d1"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a9b38a519bd3f0a5a62d7f7ed1cf185d1">CON_LOCATION_PATH</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:164</div></div>
<div class="ttc" id="apicocoap_8h_html_aa9dd43046c8daad008c9195a6f84d4f1a11eef067ac802f6435448d6bdb23a8c8"><div class="ttname"><a href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a11eef067ac802f6435448d6bdb23a8c8">CE_OUT_OF_ORDER_OPTIONS_LIST</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:87</div></div>
<div class="ttc" id="apicocoap_8h_html_a5022bbbae08abe01dc1e3363d01c9429"><div class="ttname"><a href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429">coap_type</a></div><div class="ttdeci">coap_type</div><div class="ttdoc">Message Types.</div><div class="ttdef"><b>Definition:</b> picocoap.h:107</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a6c51d61c5233b543567ee7589136bec3"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a6c51d61c5233b543567ee7589136bec3">CC_SERVICE_UNAVAILABLE</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:147</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a76b72396b70f26b9fba3ec17ee55bb0f"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a76b72396b70f26b9fba3ec17ee55bb0f">CC_REQUEST_ENTITY_INCOMPLETE</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:140</div></div>
<div class="ttc" id="apicocoap_8h_html_a6ed0e923c8bde1711a858f6a95d6211d"><div class="ttname"><a href="picocoap_8h.html#a6ed0e923c8bde1711a858f6a95d6211d">pcoap_build_option_header</a></div><div class="ttdeci">int8_t pcoap_build_option_header(uint8_t *buf, size_t max_len, int32_t opt_delta, int32_t opt_len)</div><div class="ttdoc">Internal Method.</div><div class="ttdef"><b>Definition:</b> picocoap.c:570</div></div>
<div class="ttc" id="apicocoap_8h_html_aa9dd43046c8daad008c9195a6f84d4f1adcd4f46e58a37c35d30bb2620d4db143"><div class="ttname"><a href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1adcd4f46e58a37c35d30bb2620d4db143">CE_INSUFFICIENT_BUFFER</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:88</div></div>
<div class="ttc" id="apicocoap_8h_html_ae9dc61fe8a5039ec1c2f19e6fd7e7da7"><div class="ttname"><a href="picocoap_8h.html#ae9dc61fe8a5039ec1c2f19e6fd7e7da7">pcoap_get_tkl</a></div><div class="ttdeci">static uint8_t pcoap_get_tkl(pcoap_pdu *pdu)</div><div class="ttdoc">Get Token Length.</div><div class="ttdef"><b>Definition:</b> picocoap.h:259</div></div>
<div class="ttc" id="apicocoap_8h_html_aa85087040a9a41e7c24d8ae00f24e02b"><div class="ttname"><a href="picocoap_8h.html#aa85087040a9a41e7c24d8ae00f24e02b">pcoap_version</a></div><div class="ttdeci">enum coap_version pcoap_version</div><div class="ttdoc">Protocol Versions.</div></div>
<div class="ttc" id="astructpcoap__payload_html_aae7b0f41c4c59558379b8b2a8b25674f"><div class="ttname"><a href="structpcoap__payload.html#aae7b0f41c4c59558379b8b2a8b25674f">pcoap_payload::val</a></div><div class="ttdeci">uint8_t * val</div><div class="ttdoc">length of current message</div><div class="ttdef"><b>Definition:</b> picocoap.h:206</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8ad0642d36276b52a1b0a267b9e081cef4"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ad0642d36276b52a1b0a267b9e081cef4">CC_PUT</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:124</div></div>
<div class="ttc" id="apicocoap_8h_html_a498bfe6e2730cb5018c43e1c84ece8b8"><div class="ttname"><a href="picocoap_8h.html#a498bfe6e2730cb5018c43e1c84ece8b8">pcoap_init_pdu</a></div><div class="ttdeci">pcoap_error pcoap_init_pdu(pcoap_pdu *pdu)</div><div class="ttdoc">Initialize Packet.</div><div class="ttdef"><b>Definition:</b> picocoap.c:309</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8aa296b59cf098dad78d44a561bd32ae9e"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aa296b59cf098dad78d44a561bd32ae9e">CC_NOT_ACCEPTABLE</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:139</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a45458afefee98fce1045ac286aa87281"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a45458afefee98fce1045ac286aa87281">CC_NOT_FOUND</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:137</div></div>
<div class="ttc" id="apicocoap_8h_html_a68aad811c8ab03701a2c3f1b84debe74a8d1ccd2774522702376faa2212156ebb"><div class="ttname"><a href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74a8d1ccd2774522702376faa2212156ebb">COAP_V1</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:99</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5ad5b163ee5b8c1d98774c1839ab8fcbcc"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5ad5b163ee5b8c1d98774c1839ab8fcbcc">CON_CONTENT_FORMAT</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:166</div></div>
<div class="ttc" id="apicocoap_8h_html_a32c693bd3dc87d85f8256028e9f0e0bf"><div class="ttname"><a href="picocoap_8h.html#a32c693bd3dc87d85f8256028e9f0e0bf">COAP_OPTIONS_LENGTH</a></div><div class="ttdeci">#define COAP_OPTIONS_LENGTH</div><div class="ttdef"><b>Definition:</b> picocoap.h:44</div></div>
<div class="ttc" id="apicocoap_8h_html_a859e8eba609867e6e2c0b6ff2a969d38"><div class="ttname"><a href="picocoap_8h.html#a859e8eba609867e6e2c0b6ff2a969d38">pcoap_get_option</a></div><div class="ttdeci">pcoap_option pcoap_get_option(pcoap_pdu *pdu, pcoap_option *last)</div><div class="ttdoc">Get Option.</div><div class="ttdef"><b>Definition:</b> picocoap.c:131</div></div>
<div class="ttc" id="apicocoap_8h_html_a0e56e82f2f0b64143b3e9958b7cc3657"><div class="ttname"><a href="picocoap_8h.html#a0e56e82f2f0b64143b3e9958b7cc3657">pcoap_pdu</a></div><div class="ttdeci">struct pcoap_pdu pcoap_pdu</div><div class="ttdoc">Packet Data Unit.</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a37f2e44f9612d8068df96b49c4484524"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a37f2e44f9612d8068df96b49c4484524">CC_PROXYING_NOT_SUPPORTED</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:149</div></div>
<div class="ttc" id="astructpcoap__option_html_ae4982c9d69482266d39097e641e097d0"><div class="ttname"><a href="structpcoap__option.html#ae4982c9d69482266d39097e641e097d0">pcoap_option::num</a></div><div class="ttdeci">uint16_t num</div><div class="ttdef"><b>Definition:</b> picocoap.h:194</div></div>
<div class="ttc" id="apicocoap_8h_html_aa9dd43046c8daad008c9195a6f84d4f1af1cd5b6c54ad2ed5d173ad4073db0ce7"><div class="ttname"><a href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1af1cd5b6c54ad2ed5d173ad4073db0ce7">CE_UNKNOWN_CODE</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:85</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a1bba826f081906a79b7b124d57ecaf10"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a1bba826f081906a79b7b124d57ecaf10">CC_NOT_IMPLEMENTED</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:145</div></div>
<div class="ttc" id="apicocoap_8h_html_ac67fe50885918b21eee276d621605942"><div class="ttname"><a href="picocoap_8h.html#ac67fe50885918b21eee276d621605942">pcoap_type</a></div><div class="ttdeci">enum coap_type pcoap_type</div><div class="ttdoc">Message Types.</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a9258abcdb7967f26f72d5bf86f7d9f80"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a9258abcdb7967f26f72d5bf86f7d9f80">CC_EMPTY</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:121</div></div>
<div class="ttc" id="astructpcoap__option_html_a6cad6184d76b3a8c96a742834b25a5f1"><div class="ttname"><a href="structpcoap__option.html#a6cad6184d76b3a8c96a742834b25a5f1">pcoap_option::val</a></div><div class="ttdeci">uint8_t * val</div><div class="ttdoc">length of the value</div><div class="ttdef"><b>Definition:</b> picocoap.h:196</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8aefdacb5576f290465d8db20ec254d181"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aefdacb5576f290465d8db20ec254d181">CC_METHOD_NOT_ALLOWED</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:138</div></div>
<div class="ttc" id="apicocoap_8h_html_ae623c60b0b9c8e994b3fd7687eee0147"><div class="ttname"><a href="picocoap_8h.html#ae623c60b0b9c8e994b3fd7687eee0147">pcoap_compute_option_header_len</a></div><div class="ttdeci">int8_t pcoap_compute_option_header_len(int32_t opt_delta, int32_t opt_len)</div><div class="ttdoc">Internal Method.</div><div class="ttdef"><b>Definition:</b> picocoap.c:621</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5adadc98d6fb84e39625cc6d75470b01fa"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5adadc98d6fb84e39625cc6d75470b01fa">CON_SIZE1</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:173</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5a90ffe25a2ae1f3a3e2a232819eac9614"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a90ffe25a2ae1f3a3e2a232819eac9614">CON_MAX_AGE</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:167</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a9713f1516ec910b1e5023e7f743814d3"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a9713f1516ec910b1e5023e7f743814d3">CC_REQUEST_ENTITY_TOO_LARGE</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:142</div></div>
<div class="ttc" id="astructpcoap__payload_html"><div class="ttname"><a href="structpcoap__payload.html">pcoap_payload</a></div><div class="ttdoc">CoAP Payload.</div><div class="ttdef"><b>Definition:</b> picocoap.h:204</div></div>
<div class="ttc" id="astructpcoap__pdu_html"><div class="ttname"><a href="structpcoap__pdu.html">pcoap_pdu</a></div><div class="ttdoc">Packet Data Unit.</div><div class="ttdef"><b>Definition:</b> picocoap.h:182</div></div>
<div class="ttc" id="apicocoap_8h_html_a539c085f5cd8660309b9248fe2224c9c"><div class="ttname"><a href="picocoap_8h.html#a539c085f5cd8660309b9248fe2224c9c">pcoap_add_option</a></div><div class="ttdeci">pcoap_error pcoap_add_option(pcoap_pdu *pdu, int32_t opt_num, uint8_t *value, uint16_t opt_len)</div><div class="ttdoc">Add Message Option.</div><div class="ttdef"><b>Definition:</b> picocoap.c:415</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a2c5c68ef4745976c17454bac87527f05"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a2c5c68ef4745976c17454bac87527f05">CC_BAD_GATEWAY</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:146</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a6990adba80ec99e44086bd7da700b3e0"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a6990adba80ec99e44086bd7da700b3e0">CC_BAD_REQUEST</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:133</div></div>
<div class="ttc" id="astructpcoap__pdu_html_aa631784d7d454e34fa3499de294b93b5"><div class="ttname"><a href="structpcoap__pdu.html#aa631784d7d454e34fa3499de294b93b5">pcoap_pdu::max</a></div><div class="ttdeci">size_t max</div><div class="ttdoc">length of current message</div><div class="ttdef"><b>Definition:</b> picocoap.h:185</div></div>
<div class="ttc" id="apicocoap_8h_html_a04698973849a02609859e96af51f5022"><div class="ttname"><a href="picocoap_8h.html#a04698973849a02609859e96af51f5022">pcoap_get_version</a></div><div class="ttdeci">static pcoap_version pcoap_get_version(pcoap_pdu *pdu)</div><div class="ttdoc">Get Version.</div><div class="ttdef"><b>Definition:</b> picocoap.h:239</div></div>
<div class="ttc" id="astructpcoap__option__names_html_ab6b804e37d8586e225bff9b24c33c569"><div class="ttname"><a href="structpcoap__option__names.html#ab6b804e37d8586e225bff9b24c33c569">pcoap_option_names::name</a></div><div class="ttdeci">char name[16]</div><div class="ttdef"><b>Definition:</b> picocoap.h:52</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a7e55c7951ace83c8ee1f8d14d481b80e"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a7e55c7951ace83c8ee1f8d14d481b80e">CC_POST</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:123</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8ae04c43a96dcbd7b786b77114bcb4d3f1"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ae04c43a96dcbd7b786b77114bcb4d3f1">CC_DELETE</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:125</div></div>
<div class="ttc" id="apicocoap_8h_html_aa9dd43046c8daad008c9195a6f84d4f1af4cdd83b8dd5a3c7fcffb2a996e4cd0b"><div class="ttname"><a href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1af4cdd83b8dd5a3c7fcffb2a996e4cd0b">CE_INVALID_PACKET</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:82</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a5a3d8dfe96ed58ee297980aa825e3c31"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a5a3d8dfe96ed58ee297980aa825e3c31">CC_CONTENT</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:131</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8abb3452820869a420cfa482d274b44aae"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8abb3452820869a420cfa482d274b44aae">CC_INTERNAL_SERVER_ERROR</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:144</div></div>
<div class="ttc" id="apicocoap_8h_html_a07242620cf4343b2a2b3b9e085c8bfc5affbf7b8d14e175bde3238835a34b99a3"><div class="ttname"><a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5affbf7b8d14e175bde3238835a34b99a3">CON_OBSERVE</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:162</div></div>
<div class="ttc" id="apicocoap_8h_html_a97706747324f6ab07b054ced91de43a5"><div class="ttname"><a href="picocoap_8h.html#a97706747324f6ab07b054ced91de43a5">pcoap_set_code</a></div><div class="ttdeci">pcoap_error pcoap_set_code(pcoap_pdu *pdu, pcoap_code code)</div><div class="ttdoc">Set Message Code.</div><div class="ttdef"><b>Definition:</b> picocoap.c:356</div></div>
<div class="ttc" id="apicocoap_8h_html_a48a9e2b97de2c3cdd2f1d6c0b3cfefeb"><div class="ttname"><a href="picocoap_8h.html#a48a9e2b97de2c3cdd2f1d6c0b3cfefeb">pcoap_build_code</a></div><div class="ttdeci">static uint8_t pcoap_build_code(uint8_t _class, uint8_t detail)</div><div class="ttdoc">Build Message Code from Class and Detail.</div><div class="ttdef"><b>Definition:</b> picocoap.h:445</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a3a8a055a5144a03f36b975b2d538aeca"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a3a8a055a5144a03f36b975b2d538aeca">CC_CONTINUE</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:132</div></div>
<div class="ttc" id="apicocoap_8h_html_a5022bbbae08abe01dc1e3363d01c9429a569079569cc030d7b3e8742fe4fb604c"><div class="ttname"><a href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a569079569cc030d7b3e8742fe4fb604c">CT_NON</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:109</div></div>
<div class="ttc" id="apicocoap_8h_html_a28b0035cf1fab512f4a990059e78501b"><div class="ttname"><a href="picocoap_8h.html#a28b0035cf1fab512f4a990059e78501b">pcoap_get_option_by_num</a></div><div class="ttdeci">pcoap_option pcoap_get_option_by_num(pcoap_pdu *pdu, pcoap_option_number num, uint8_t occ)</div><div class="ttdoc">Get Option by Option Number.</div><div class="ttdef"><b>Definition:</b> picocoap.c:180</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8a8844b1adff13138095852a8ebd24cd54"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a8844b1adff13138095852a8ebd24cd54">CC_UNSUPPORTED_CONTENT</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:143</div></div>
<div class="ttc" id="apicocoap_8h_html_affcc36a845fcf67c97a6b5cd176f36ca"><div class="ttname"><a href="picocoap_8h.html#affcc36a845fcf67c97a6b5cd176f36ca">pcoap_payload</a></div><div class="ttdeci">struct pcoap_payload pcoap_payload</div><div class="ttdoc">CoAP Payload.</div></div>
<div class="ttc" id="apicocoap_8h_html_a38d6e34ee134b30dc8e0ff2645bdefc8ab93c8cf2548e5a7e234f1239fc5abb21"><div class="ttname"><a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ab93c8cf2548e5a7e234f1239fc5abb21">CC_FORBIDDEN</a></div><div class="ttdef"><b>Definition:</b> picocoap.h:136</div></div>
<div class="ttc" id="apicocoap_8h_html_a0e9f0127122915fe5da80363b1b802bc"><div class="ttname"><a href="picocoap_8h.html#a0e9f0127122915fe5da80363b1b802bc">pcoap_adjust_option_deltas</a></div><div class="ttdeci">pcoap_error pcoap_adjust_option_deltas(uint8_t *opts, size_t *opts_len, size_t max_len, int32_t offset)</div><div class="ttdoc">Internal Method.</div><div class="ttdef"><b>Definition:</b> picocoap.c:517</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
